/*  1:   */ package com.jetbrains.licenseService.responses;
/*  2:   */ 
/*  3:   */

import com.jetbrains.licenseService.util.DecodeException;
import com.jetbrains.licenseService.util.PublicKeys;
import com.jetbrains.licenseService.util.RSADecoder;
import com.jetbrains.licenseService.util.ResponseMarshaller;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public class EncodedAsset
/*  9:   */ {
/* 10:13 */   private String a = "";
/* 11:   */   
/* 12:   */   public EncodedAsset() {}
/* 13:   */   
/* 14:   */   public EncodedAsset(String paramString)
/* 15:   */   {
/* 16:19 */     this.a = paramString;
/* 17:   */   }
/* 18:   */   
/* 19:   */   public String getData()
/* 20:   */   {
/* 21:23 */     return this.a;
/* 22:   */   }
/* 23:   */   
/* 24:   */   public void setData(String paramString)
/* 25:   */   {
/* 26:27 */     this.a = paramString;
/* 27:   */   }
/* 28:   */   
/* 29:   */   public License decode()
/* 30:   */     throws DecodeException
/* 31:   */   {
/* 32:31 */     String str = new RSADecoder(PublicKeys.LICENSE_PUBLIC_EXPONENT, PublicKeys.LICENSE_PUBLIC_MODULUS).decodeString(getData());
/* 33:32 */     return (License)ResponseMarshaller.unmarshall(str);
/* 34:   */   }
/* 35:   */   
/* 36:   */   public String toString()
/* 37:   */   {
/* 38:36 */     return "EncodedAsset{" + this.a + "}";
/* 39:   */   }
/* 40:   */ }



/* Location:           E:\idea\

 * Qualified Name:     com.jetbrains.licenseService.responses.EncodedAsset

 * JD-Core Version:    0.7.0.1

 */